﻿Public Class FormMain

    Private Sub អតថជនToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles អតថជនToolStripMenuItem.Click

        FormType.Close()
        FormVendor.Close()
        FormCategory.Close()
        FormProduct.Close()
        FormStore.Close()

        FormCustomer.MdiParent = Me
        FormCustomer.Show()

     
    End Sub

    Private Sub អនកលកToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles អនកលកToolStripMenuItem.Click

        FormType.Close()
        FormCustomer.Close()
        FormCategory.Close()
        FormProduct.Close()
        FormStore.Close()

        FormVendor.MdiParent = Me
        FormVendor.WindowState = FormWindowState.Maximized
        FormVendor.Show()

      
    End Sub

    Private Sub ទនញToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ទនញToolStripMenuItem.Click

        FormType.Close()
        FormVendor.Close()
        FormCategory.Close()
        FormCustomer.Close()
        FormStore.Close()

        FormProduct.MdiParent = Me
        FormProduct.WindowState = FormWindowState.Maximized
        FormProduct.Show()

    End Sub

    Private Sub ឃលងToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ឃលងToolStripMenuItem.Click

        FormType.Close()
        FormCategory.Close()
        FormVendor.Close()
        FormCustomer.Close()
        FormProduct.Close()

        FormStore.MdiParent = Me
        FormStore.Show()

    End Sub

    Private Sub ករមទនញToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ករមទនញToolStripMenuItem.Click

        FormType.Close()
        FormVendor.Close()
        FormCustomer.Close()
        FormProduct.Close()
        FormStore.Close()

        FormCategory.MdiParent = Me
        FormCategory.Show()

    End Sub

    Private Sub បរភទទនញToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles បរភទទនញToolStripMenuItem.Click

        FormCategory.Close()
        FormVendor.Close()
        FormCustomer.Close()
        FormProduct.Close()
        FormStore.Close()

        FormType.MdiParent = Me
        FormType.Show()

    End Sub
End Class